export default {
  install: function(Vue) {
    Vue.directive('errorImg', {
      bind() {},
      inserted(el, obj) {
        el.onerror = function() {
          el.src = obj.value
        }
      }
    })
  }
}
